/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.weso.acota.strategy;

import java.util.LinkedList;
import java.util.List;
import org.weso.acota.dao.SuggestDAO;
import org.weso.acota.to.RequestSuggestionTO;
import org.weso.acota.to.SuggestionTO;
import org.weso.acota.to.TagTO;

/**
 *
 * @author chema
 */
public class DummyCotaCollectStrategy implements CotaCollectStrategy{

    @Override
    public SuggestionTO suggest(RequestSuggestionTO request, List<SuggestDAO> sources) {
        SuggestionTO result = new SuggestionTO();
        List<TagTO> tags = new LinkedList<TagTO>();
        for (SuggestDAO dao : sources) {
            tags.addAll(dao.suggest(request).getTags());
        }
        result.setTags(tags);
        return result;
    }

    

}
